import * as types from '@/store/mutation-types';

export default {

  // * 存菜单categories
  [types.SAVE_MENU_CATEGORIES](state, payload) {
    state.categories = payload.categories;
  },

  // * 存菜单food
  [types.SAVE_MENU_FOOD](state, payload) {
    state.foods = payload.foods;
  },
  // local storage中的点餐列表
  [types.GET_ORDER_LIST_STATE](state, payload) {
    state.orderListState = payload.orderListState;
  },

  [types.SAVE_SHOW_CARD_LIST](state, payload) {
    state.showCardList = payload.showCardList;
  },

  // ? 暂时无用
  [types.SAVE_FOODS_LIST](state, payload) {
    state.foodsList = payload.foodsList;
  },

};
